package 注解.注解基础;

import java.lang.annotation.Annotation;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-12-21 16:30
 **/
public class Student extends Person {

    public static void main(String[] args) {
        Class<Student> studentClass = Student.class;
        Annotation[] annotations = studentClass.getAnnotations();
        for (Annotation annotation : annotations) {
            System.out.println(annotation.toString());
        }
    }
}
